import Vue from "vue";
import Vuex from "vuex";
import user from "./modules/user";
import permission from "./modules/permission";
import getters from "./getters";

import createPersistedState from "vuex-persistedstate";
Vue.use(Vuex);

const dataState = createPersistedState({
  paths: ["user"]
});
const store = new Vuex.Store({
  modules: {
    user,
    permission
  },
  getters,
});

export default store;
